#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Times;
using Cephei.QL.Indexes;
using Cephei.QL;
namespace Cephei.QL.Cashflows
{
     // <summary> 
	// ! helper class building a sequence of capped/floored cms-rate coupons
	// </summary>
    [Guid ("0912EE04-B463-45a7-B30F-E1A819B7EBA1"),ComVisible(true)]
	public interface ICmsLeg 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Cephei.QL.Cashflows.ICmsLeg InArrears(Microsoft.FSharp.Core.FSharpOption<Boolean> flag);
        
		 Cephei.QL.Cashflows.ICmsLeg WithCaps(Cephei.IVector<Double> caps);
        
		 Cephei.QL.Cashflows.ICmsLeg WithFixingDays(Cephei.IVector<UInt32> fixingDays);
        
		 Cephei.QL.Cashflows.ICmsLeg WithFloors(Cephei.IVector<Double> floors);
        
		 Cephei.QL.Cashflows.ICmsLeg WithGearings(Cephei.IVector<Double> gearings);
        
		 Cephei.QL.Cashflows.ICmsLeg WithNotionals(Cephei.IVector<Double> notionals);
        
		 Cephei.QL.Cashflows.ICmsLeg WithPaymentAdjustment(QL.Times.BusinessDayConventionEnum convention);
        
		 Cephei.QL.Cashflows.ICmsLeg WithPaymentDayCounter(Cephei.QL.Times.IDayCounter dayCounter);
        
		 Cephei.QL.Cashflows.ICmsLeg WithSpreads(Cephei.IVector<Double> spreads);
        
		 Cephei.QL.Cashflows.ICmsLeg WithZeroPayments(Microsoft.FSharp.Core.FSharpOption<Boolean> flag);
    }

    // <summary> 
	// ! helper class building a sequence of capped/floored cms-rate coupons Factory
	// </summary>
   	[ComVisible(true)]
    public interface ICmsLeg_Factory // : Collection_Factory<ICmsLeg, ICell<ICmsLeg>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    ICmsLeg Create (Cephei.QL.Times.ISchedule schedule, Cephei.QL.Indexes.ISwapIndex swapIndex);
    }
}

